.class public Lcom/estrongs/android/view/r;
.super Landroid/widget/BaseAdapter;
.source "ClipBoardAdapter.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/view/r$c;
    }
.end annotation


# static fields
.field private static e:Lcom/estrongs/android/view/r$c;


# instance fields
.field private a:Landroid/content/Context;

.field private b:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;"
        }
    .end annotation
.end field

.field private c:Z

.field public d:Lcom/estrongs/android/view/r$c;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .line 1
    new-instance v0, Lcom/estrongs/android/view/r$a;

    invoke-direct {v0}, Lcom/estrongs/android/view/r$a;-><init>()V

    sput-object v0, Lcom/estrongs/android/view/r;->e:Lcom/estrongs/android/view/r$c;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Ljava/util/List;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;)V"
        }
    .end annotation

    .line 1
    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    .line 2
    sget-object v0, Lcom/estrongs/android/view/r;->e:Lcom/estrongs/android/view/r$c;

    iput-object v0, p0, Lcom/estrongs/android/view/r;->d:Lcom/estrongs/android/view/r$c;

    .line 3
    iput-object p1, p0, Lcom/estrongs/android/view/r;->a:Landroid/content/Context;

    .line 4
    iput-object p2, p0, Lcom/estrongs/android/view/r;->b:Ljava/util/List;

    return-void
.end method


# virtual methods
.method public a(Lcom/estrongs/android/view/r$c;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/view/r;->d:Lcom/estrongs/android/view/r$c;

    return-void
.end method

.method public a(Z)V
    .locals 0

    .line 2
    iput-boolean p1, p0, Lcom/estrongs/android/view/r;->c:Z

    return-void
.end method

.method public getCount()I
    .locals 1

    .line 1
    iget-boolean v0, p0, Lcom/estrongs/android/view/r;->c:Z

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    return v0

    .line 2
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/view/r;->b:Ljava/util/List;

    if-nez v0, :cond_1

    const/4 v0, 0x0

    goto :goto_0

    :cond_1
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    :goto_0
    return v0
.end method

.method public getItem(I)Lcom/estrongs/fs/g;
    .locals 2

    .line 2
    iget-boolean v0, p0, Lcom/estrongs/android/view/r;->c:Z

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    return-object v1

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/view/r;->b:Ljava/util/List;

    if-nez v0, :cond_1

    goto :goto_0

    :cond_1
    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    move-object v1, p1

    check-cast v1, Lcom/estrongs/fs/g;

    :goto_0
    return-object v1
.end method

.method public bridge synthetic getItem(I)Ljava/lang/Object;
    .locals 0

    .line 1
    invoke-virtual {p0, p1}, Lcom/estrongs/android/view/r;->getItem(I)Lcom/estrongs/fs/g;

    move-result-object p1

    return-object p1
.end method

.method public getItemId(I)J
    .locals 2

    int-to-long v0, p1

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 3

    if-nez p2, :cond_0

    .line 1
    iget-object p2, p0, Lcom/estrongs/android/view/r;->a:Landroid/content/Context;

    invoke-static {p2}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object p2

    const p3, 0x7f0c0192

    const/4 v0, 0x0

    invoke-virtual {p2, p3, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    :cond_0
    const p3, 0x7f0800e3

    .line 2
    invoke-virtual {p2, p3}, Landroid/view/View;->setBackgroundResource(I)V

    const p3, 0x7f090d74

    .line 3
    invoke-virtual {p2, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p3

    check-cast p3, Landroid/widget/ImageView;

    .line 4
    iget-boolean v0, p0, Lcom/estrongs/android/view/r;->c:Z

    if-eqz v0, :cond_1

    const v0, 0x7f080764

    .line 5
    invoke-virtual {p3, v0}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_0

    .line 6
    :cond_1
    iget-object v0, p0, Lcom/estrongs/android/view/r;->b:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/fs/g;

    .line 7
    invoke-static {v0}, Les/rj;->c(Lcom/estrongs/fs/g;)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    .line 8
    invoke-static {v0}, Les/rj;->k(Lcom/estrongs/fs/g;)Z

    move-result v2

    if-eqz v2, :cond_2

    .line 9
    invoke-interface {v0}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2, p3, v0}, Lcom/estrongs/android/icon/loader/c;->a(Ljava/lang/String;Landroid/widget/ImageView;Lcom/estrongs/fs/g;)V

    .line 10
    :cond_2
    invoke-virtual {p3, v1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    :goto_0
    const p3, 0x7f0907bc

    .line 11
    invoke-virtual {p2, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p3

    check-cast p3, Landroid/widget/TextView;

    .line 12
    iget-boolean v0, p0, Lcom/estrongs/android/view/r;->c:Z

    if-eqz v0, :cond_3

    .line 13
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v1, p0, Lcom/estrongs/android/view/r;->a:Landroid/content/Context;

    const v2, 0x7f1106cf

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "("

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, p0, Lcom/estrongs/android/view/r;->b:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v1, ")"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p3, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_1

    .line 14
    :cond_3
    iget-object v0, p0, Lcom/estrongs/android/view/r;->b:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/fs/g;

    invoke-interface {v0}, Lcom/estrongs/fs/g;->getName()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p3, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 15
    :goto_1
    new-instance p3, Lcom/estrongs/android/view/r$b;

    invoke-direct {p3, p0, p1}, Lcom/estrongs/android/view/r$b;-><init>(Lcom/estrongs/android/view/r;I)V

    .line 16
    invoke-virtual {p2, p3}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-object p2
.end method

.method public notifyDataSetChanged()V
    .locals 1

    .line 1
    invoke-super {p0}, Landroid/widget/BaseAdapter;->notifyDataSetChanged()V

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/view/r;->d:Lcom/estrongs/android/view/r$c;

    invoke-interface {v0}, Lcom/estrongs/android/view/r$c;->a()V

    return-void
.end method
